package org.example.springboot.convert;

import org.example.springboot.entity.IrrigationLog;
import org.example.springboot.vo.IrrigationLogVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 数据转换层
 *
 * @author Fz
 * @since 1.0.0 2024-07-31
 */
@Mapper
public interface IrrigationLogConvert {

    IrrigationLogConvert INSTANCE = Mappers.getMapper(IrrigationLogConvert.class);

    IrrigationLog convert(IrrigationLogVO vo);

    IrrigationLogVO convert(IrrigationLog entity);

    List<IrrigationLogVO> convertList(List<IrrigationLog> list);

}